<html>
<head><meta charset="utf-8"><title>how to get trait&#x27;s functions · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/how.20to.20get.20trait&#x27;s.20functions.html">how to get trait&#x27;s functions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="159280276"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/how%20to%20get%20trait%27s%20functions/near/159280276" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gfreezy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/how.20to.20get.20trait&#x27;s.20functions.html#159280276">(Feb 24 2019 at 15:39)</a>:</h4>
<p>I'm working on <a href="https://github.com/rust-analyzer/rust-analyzer/issues/878" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/issues/878">https://github.com/rust-analyzer/rust-analyzer/issues/878</a>. Why there doesn't exist a method on TraitDef to get all the functions?</p>



<a name="159280461"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/how%20to%20get%20trait%27s%20functions/near/159280461" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gfreezy <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/how.20to.20get.20trait&#x27;s.20functions.html#159280461">(Feb 24 2019 at 15:44)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span></p>



<a name="159280462"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/how%20to%20get%20trait%27s%20functions/near/159280462" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/how.20to.20get.20trait&#x27;s.20functions.html#159280462">(Feb 24 2019 at 15:44)</a>:</h4>
<p>I think just because this wasn't needed before. Seems like a good idea to add such a method!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>